#include"util.hpp"
#include<iostream>
#include<string>
#include<vector>
#include"data.hpp"
#include"config.hpp"
#include"jsoncpp/json/json.h"
#include"hot.hpp"
#include"service.hpp"
#include<thread>
using namespace std;

cloud::DataManager* _data=nullptr;


void TestHot()
{
   
    cloud::HotManager hm;
    hm.RunModul();

}

void TestServer()
{
    cloud::Service ser;
    ser.RunModul();
}
int main()
{
    _data=new cloud::DataManager;

    std::thread thread_hot_manager(TestHot);
    std::thread thread_service(TestServer);

    thread_hot_manager.join();
    thread_service.join();
    
    return 0;
}